Exempt "pages" properties from defaultvalue test
authorMatthias Clasen <mclasen@redhat.com>
Wed, 13 Feb 2019 23:14:48 +0000 (18:14 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 13 Feb 2019 23:14:48 +0000 (18:14 -0500)
Ironically, these properties are too good - they always
give you a proper value, which is unfortunately different
from the declared default value, which is NULL. So, don't
check these.

testsuite/gtk/defaultvalue.c

index f4c335037fe7c51121b6f78aded3a1c09cb790e7..9ef83c1aaf05a5db93965cd6d17d745148da036a 100644 (file)
@@ -157,7 +157,12 @@ test_type (gconstpointer data)
        continue;
 
       if (g_type_is_a (type, GTK_TYPE_ASSISTANT) &&
-         (strcmp (pspec->name, "use-header-bar") == 0))
+         (strcmp (pspec->name, "use-header-bar") == 0 ||
+           strcmp (pspec->name, "pages") == 0)) /* pages always gets a non-NULL value */
+       continue;
+
+      if (g_type_is_a (type, GTK_TYPE_STACK) &&
+         (strcmp (pspec->name, "pages") == 0)) /* pages always gets a non-NULL value */
        continue;
 
       if (g_type_is_a (type, GTK_TYPE_POPOVER) &&